<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %>
<html>
<head>
<title>上下岗信息修改</title>
</head>
<body>
  <d:View config="com.efesco.service.onOff.onOffModify">
    <d:AutoForm id="form1" />     
 
   <TABLE cellspacing="0"  cellpadding="0"  class="AutoForm"  border="0"  style="width:100%;">
	<TR><TD>
	<TABLE width="100%"  height="100%"  cellspacing="0"  cellpadding="0"  border="0"  style="table-layout: fixed">
	<tr><TD valign="top" ><br>
	<FIELDSET id="form1_group0"  style="width:100%;"><LEGEND>&nbsp;&nbsp;费用段信息&nbsp;&nbsp;</LEGEND>
	<DIV>
	<DIV class="GroupBoxDiv" style="width:100%;height:100%">
	<TABLE width="100%"  cellspacing="0"  cellpadding="4"  border="0" style="table-layout:fixed;">
	
	<TR><TD>
	
	<table border="0" width="100%">   
   <%     
    String theId="";
    com.bstek.dorado.view.data.ViewDataset dsEcf=(com.bstek.dorado.view.data.ViewDataset)request.getAttribute("ecf");
    dsEcf.moveFirst();
   %>
    
   <%
    int zongCount=0;
    int count=0;  
    while(!dsEcf.isLast()){ ///////////////////////while
        String ecfId=dsEcf.getString("EMPLOYEE_CONTRACT_FEE_ID");
        if( !theId.equals(ecfId) ){ //新的费用段*************************
            zongCount++;            
            if(!"".equals(theId) &&(count%4==1||count%4==3  ) ){   
   %>
               <td>&nbsp;</td>
               <td>&nbsp;</td>
              </tr>
          <%
            }
            count=0;
          %>       
         <tr bgcolor=<%=(zongCount%2==0?"#f4f4f4":"#e0e0e0")%>>
           <td width="25%"><font color="bulue">第<%=zongCount%>    时间段</font>       <a target="_blank" href="employment.feeChange.d?employee_contract_fee_id=<%=ecfId%>">修改</a></td>
           <td width="25%"><%=dsEcf.getValue("START_DATE")%> ~ <%=dsEcf.getValue("END_DATE")%></td>
           <td width="25%">总金额</td>
           <td width="25%"><%=dsEcf.getValue("CONTRACT_FUND")%></td>
         </tr>  
   <%   
        } //*************************
        String pName=dsEcf.getString("PRODUCT_NAME");
        if(!dsEcf.getString("ENTERPRISE_BASE").equals("")) 
           pName+="("+dsEcf.getString("ENTERPRISE_BASE")+")";
   %>
   <%        
        if(count%4==0 || count%4==2){
   %>
        <tr bgcolor=<%=(zongCount%2==0?"#f4f4f4":"#e0e0e0")%>>
           <td width="25%"><%=pName%></td>
           <td width="25%"><%=dsEcf.getString("MONEY")%></td>
   <%
        }
   %>   
   <%                
        if(count%4==1 || count%4==3){
   %>        
           <td width="25%"><%=pName%></td>
           <td width="25%"><%=dsEcf.getString("MONEY")%></td>
        <tr>   
   <%
        }          
   %>            
   <%     
        theId=ecfId;     
        count++;  
        dsEcf.moveNext();
    }  ///////////////////////while    
    %>    
    <%
    if(count%4==1||count%4==3){ 
    %>  
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      </tr>
   <%}%>   
   </table>
	
	
	
	
	</TD></TR>
	</TABLE></DIV></DIV></TD></TR>
	</TABLE></TD></TR>
   </TABLE>  
   
    
  </d:View>
   
</body>
</html>
